package com.ruicar.afs.cloud.seats.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author tiankai
 * @Describe 用户参数配置表
 * Created on 2020-06-18
 */
@Data
@TableName("seats_user_collocation")
@ApiModel(value = "参数配置")
public class UserCollocation extends BaseEntity<UserCollocation> {
    /**
     * 用户ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    /**
     * 总权重
     */
    private Long totalWeight;
    /**
     * 岗位状态
     */
    private String postStatus;
    /**
     * 代理人ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long agentId;
    /**
     * 代理人
     */
    private String agent;
    /**
     * 代理人登录名
     */
    private String agentLoginName;
    /**
     * 组长ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long groupLeaderId;
    /**
     * 组长
     */
    private String groupLeader;
    /**
     * 组长登录名
     */
    private String groupLeaderLoginName;
    /**
     * 代理组长ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long agentGroupLeaderId;
    /**
     * 代理组长
     */
    private String agentGroupLeader;
    /**
     * 代理组长登录名
     */
    private String agentGroupLeaderLoginName;
    /**
     * 登录名
     */
    private String loginName;
    /**
     * 审批金额
     */
    private BigDecimal approvedAmount;
    /**
     * 姓名
     */
    private String userRealName;

    /**可用权重*/
    @TableField(exist = false)
    @ApiModelProperty(value = "可用权重数量")
    private int usableCount;

    /**
     * 上离岗手动，自动标记
     */
    private String jobTag;
}
